<html>

<head>
    <script src="http://www.jq22.com/jquery/jquery-2.1.1.js"></script>
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>测试</title>
</head>

<body>
file:///D:/PySpace/wanlong/wliot/html/checkController.html
<br>
url：<br>
<input type="text" id="url" style="width:1000px">
<br><br>
<button type="button" onclick="get_data()">获取数据测试</button>
<script>
    function get_data(){
        $.ajax({
              type: 'get',
              data: {},
              dataType: 'json',
              url: document.getElementById('url').value,
              success: function (res) {
                console.log(res);
              },
              error: function (e) {
                console.log(e);
              },
         });
    }


</script>
</body>

</html>